home *** CD-ROM | disk | FTP | other *** search
/ My Neighborhood / My Neighborhood.iso / mac / MacFiles / Shared.Dir / 00900.ls next >
Encoding:
Text File  |  1997-11-20  |  935 b   |  38 lines

  1. on startMovie
  2.   global questionNumber, snap
  3.   set snap to 0
  4.   set whichCursor to the number of cast "handCursor"
  5.   cursor([whichCursor, whichCursor + 1])
  6. end
  7.  
  8. on wait ticks
  9.   set temp to the timer
  10.   repeat while (the timer - temp) < ticks
  11.   end repeat
  12. end
  13.  
  14. on autoHilite
  15.   set whichSprite to the clickOn
  16.   set default to the castNum of sprite whichSprite
  17.   set the castNum of sprite whichSprite to default + 1
  18.   updateStage()
  19.   wait(5)
  20.   repeat while the stillDown
  21.     if rollOver(whichSprite) then
  22.       set the castNum of sprite whichSprite to default + 1
  23.     else
  24.       set the castNum of sprite whichSprite to default
  25.     end if
  26.     updateStage()
  27.   end repeat
  28.   set the castNum of sprite whichSprite to default
  29.   updateStage()
  30.   if rollOver(whichSprite) then
  31.     if the scriptNum of sprite whichSprite <> 0 then
  32.       action(script the scriptNum of sprite whichSprite)
  33.     else
  34.       action(script default)
  35.     end if
  36.   end if
  37. end
  38.